package com.example.sys.async.vo;

import com.example.core.vo.BaseVo;
import com.example.sys.async.enums.SysASyncType;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class SysASyncVo extends BaseVo<SysASyncVo> {

    private SysASyncType type;

    private String target;

    private String context;

    private String extraParameter;

    private boolean completed;

    private boolean successed;

    private String error;

    private int modelKey;

    private String modelId;

    private String modelName;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;
}
